/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.cesupa.cabcc.sudi;

import br.cesupa.cabcc.dao.BolsistaDAO;
import br.cesupa.cabcc.entity.Bolsista;
import br.cesupa.cabcc.entity.Usuario;
import java.util.Date;
import java.util.List;

/**
 *
 * @author yuri
 */
public class BolsistaSUDI extends GenericSUDI<Bolsista> implements BolsistaDAO {

    public Bolsista getById(Integer id) {
        return (Bolsista) super.executeNamedQueryObject("Bolsista.findById", "id", id);
    }

    public List<Bolsista> getByData(Date data) {
        return super.executeNamedQueryList("Bolsista.findByData", "dataBolsa", data);
    }

    public List<Bolsista> getByUsuario(Usuario usuario) {
        return super.executeNamedQueryList("Bolsista.findByUsuario", "usuario", usuario);
    }

}
